
// DrawDotMatrixView.h : interface of the CDrawDotMatrixView class
//

#pragma once


class CDrawDotMatrixView : public CScrollView
{
protected: // create from serialization only
	CDrawDotMatrixView();
	DECLARE_DYNCREATE(CDrawDotMatrixView)

// Attributes
public:
	CDrawDotMatrixDoc* GetDocument() const;
	
// Operations
public:
	BYTE* m_pImg;
	BITMAPINFO* m_pBitImage;
// Overrides
public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// Implementation
public:
	virtual ~CDrawDotMatrixView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	afx_msg void OnFilePrintPreview();
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	DECLARE_MESSAGE_MAP()
public:
	virtual void OnInitialUpdate();
};

#ifndef _DEBUG  // debug version in DrawDotMatrixView.cpp
inline CDrawDotMatrixDoc* CDrawDotMatrixView::GetDocument() const
   { return reinterpret_cast<CDrawDotMatrixDoc*>(m_pDocument); }
#endif

